package org.wangchaocheng.cloudgallery.user.assembler;

import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;
import org.mapstruct.factory.Mappers;
import org.wangchaocheng.cloudgallery.commond.user.RoleSaveCmd;
import org.wangchaocheng.cloudgallery.dto.user.RoleDTO;

/**
 * 角色信息装配器
 * @author wangchaocheng
 * @date 2025/03/28
 */
@Mapper
public interface RoleAssembler {

    RoleAssembler INSTANCE = Mappers.getMapper(RoleAssembler.class);

    @Mappings({
        @Mapping(target = "gmtModified", ignore = true),
        @Mapping(target = "gmtCreate", ignore = true)
    })
    RoleDTO assembleDTO(RoleSaveCmd roleSaveCmd);


}
